﻿@model IEnumerable<Marketplace.Engine.Model.SaleProperty>
@{
    ViewBag.Title = "For Sale Properties";
}

<h2>For Sale Properties</h2>

<table>    
@foreach (var item in Model) 
{    
    <tr>
         <td rowspan="5" class="picture"></td>   
    </tr>        
    <tr>
        <td class="property-type">
            @Html.DisplayFor(modelItem => item.BedroomCount) Bedroom | 
            @Html.DisplayFor(modelItem => item.PropertyType) | 

            @Html.Label("Available Date")
            @Html.DisplayFor(modelItem => item.AvailableDate)
         </td>   
    </tr>
    <tr>
        <td class="property-address">@Html.DisplayFor(modelItem => item.No) | @Html.DisplayFor(modelItem => item.Address) | @Html.DisplayFor(modelItem => item.City)</td>   
    </tr>
    <tr>
        <td class="property-price">Price : @Html.DisplayFor(modelItem => item.Price)</td>   
    </tr>
    <tr>        
        <td class="property-detail">@Html.ActionLink("More Details", "ToSaleDetail", new { id = item.Id }) </td>        
    </tr>
}
</table>